#ifndef SYNCDELICIOUS_H
#define SYNCDELICIOUS_H

#include <QString>
#include <QStringList> 

#include "utilities.h"


class SyncDelicious  
{
	public:
		SyncDelicious();

		// Add a post to del.icio.us
		bool add( QString url, QString description);		
		bool add( QString url, QString description, QString extended, QString tags, QString date);
		bool add( QString url, QString description, QString extended, QString tags, QString date, bool replace, bool shared);
		

	private:
		QStringList urlList;		
		QStringList paramList;
		QStringList codeList;
		
		Utilities utilities;
		
		// Codes that are returned from del.icio.us
		enum ReturnCode	{ DONE, OK, SOME_THING_WENT_WRONG };
		
		enum RelativeUrl {  
			BUNDLES_ALL,
			BUNDLES_DELETE, 
			BUNDLES__SET, 
			INBOX_GET, 
			POSTS_ADD, 
			POSTS_ALL, 
			POSTS_DELETE, 
			POSTS_GET, 
			POSTS_RECENT, 
			POSTS_UPDATE,
			TAGS_GET, 
			TAGS_RENAME 			
		};	
			
		enum UrlParameter
		{	
			BUNDLE,
			COUNT,
			DATE,
			DESCRIPTION,
			EXTENDED,
			NEW,
			OLD,
			REPLACE,
			SHARED,
			TAG,
			TAGS,
			URL,
			NO,
			YES
		};
};
#endif
